@import 'var';

@mixin my-input($w: 100%) {
  box-sizing: border-box;
  width: $w;
  border: 1px solid #999;
  height: 30px;
  padding: 5px 6px;
  outline: none;
}

.register-wrap {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  padding: 20px;
  box-shadow: 0 0 4px #ccc;
  border-radius: 3px;

  h2 {
    text-align: center;
    font-weight: 500;
  }

  .input-group {
    padding-top: 20px;

    input {
      @include my-input;
    }

    button {
      width: 100%;
      height: 40px;
      background-color: $theme-color;
      color: #fff;
      border: none;

      &:active {
        background-color: lighten($theme-color, 10%);
      }
    }
  }

  .code-group {
    padding-top: 20px;

    input {
      @include my-input(150px);
      float: left;
    }

    img {
      float: left;
      margin-left: 10px;
      width: 140px;
      height: 30px;
    }
  }
}